package link.jfire.socket.test;

import link.jfire.socket.socketserver.storage.waitstrategy.CirculationWaitStrategy;
import link.jfire.socket.socketserver.storage.waitstrategy.SleepWaitStrategy;
import link.jfire.socket.socketserver.transfer.server.ServerConfig;
import link.jfire.socket.socketserver.transfer.server.ServerMain;

public class ServerMock
{
    public static void main(String[] args)
    {
        ServerConfig serverConfig = new ServerConfig();
        serverConfig.setPort(80);
        serverConfig.setWaitStrategy(new CirculationWaitStrategy(100));
        // serverConfig.setWaitStrategy(new SleepWaitStrategy(1));
        // serverConfig.setWaitStrategy(new BusyWaitStrategy());
        ServerMain serverMain = new ServerMain(serverConfig);
        serverMain.start();
    }
}
